﻿@{       
    Layout = "~/Views/Shared/_Khung.cshtml";

    ViewData["SiteMap"] = new string[] 
    {
        "Trang chủ", "/TrangChu", 
        "Thêm chủ đề", "/ThemChuDe",
    };
}

<link href="@Url.Content("~/Content/css/Shared/Form.css")" rel="stylesheet" type="text/css" />

<section class="noi-dung">
    <div class="form-title">       
        Thêm chủ đề
    </div>
    <form class="form-container" id="frmThemChuDe" method="post" action="/ChuDe/XuLyThemChuDe">            
        <div class="form-container">
            <div class="input-box">
                <label for="TenChuDe" class="lbl-required">Tên chủ đề</label>
                <input type="text" name="TenChuDe" id="TenChuDe" class="required" />
            </div>
            <div class="input-box">
                <label for="ChuDeCha">Chủ đề cha</label>
                @{
                    List<LCTMoodle.Models.ViewModels.ChuDeViewModel> chuDe = LCTMoodle.Service.ChuDeService.layChuDe();
                    if (chuDe != null)
                    {
                        <select name="MaChuDeCha" id="MaChuDeCha">
                            <option value="0">Không có chủ đề cha</option>
                        @for(int i=0; i<chuDe.Count; i++)
                        {
                            <option value="@chuDe[i].Ma">@chuDe[i].TenChuDe</option>
                        }
                        </select>
                    }
                }
            </div>               
            <div class="input-box-submit">
                <input type="submit" value="Gửi" />
                <input type="reset" value="Làm lại" />
            </div>
        </div>        
    </form>
</section>

<script src="@Url.Content("~/Content/script/Shared/Form.js")"></script>